<%@page import="md.utm.simple_jdbc.Person"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View inserted data</title>
</head>
<body>
	<jsp:useBean id="person" class="md.utm.simple_jdbc.Person"
		scope="session" />
	<jsp:setProperty name="person" property="*" />
	<form method=post action="insert-to-db">
		<table>
			<tr>
				<td>Name</td>
				<td><jsp:getProperty name="person" property="name" /></td>
			</tr>
			<tr>
				<td>Surname</td>
				<td><jsp:getProperty name="person" property="surname" /></td>
			</tr>
			<tr>
				<td>Year of birth</td>
				<td><jsp:getProperty name="person" property="yearOfBirth" /></td>
			</tr>
			<tr>
				<td>Is student</td>
				<td><jsp:getProperty name="person" property="student" /></td>
			</tr>
		</table>
		<p>
			<input type=submit value="Save to database">
	</form>
</body>
</html>